package com.software.graduationproject.modules.marketers.object;

import com.software.graduationproject.commons.enums.MerchantType;
import com.software.graduationproject.modules.marketers.entity.Marketers;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * MarketersVo : 商家表
 * ---------------------------------------------------------------------------------------------------------------------
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class MarketersVo extends Marketers {

    private Double averageRateValue;

    private String typeText;
    public String getTypeText(){
        return MerchantType.ERROR.getEnum(super.getType()).getLabel();
    }
}
